package com.pxst.bank.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("sys_bank_service_time")
public class SysBankServiceTimeEntity {

    /**
     * 银行服务时间id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 可用银行id
     */
    private Long availableBankId;

    /**
     * 类型 1: Bank 2: Route (Bank) 3: Route (FI) 4: Route(QR FI)
     */
    private Integer type;

    /**
     * 频率 1: One Time 2: Every Day 3: Periodicity
     */
    private Integer frequency;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date startDatetime;
    /**
     * 截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date endDatetime;
    /**
     *
     */
    private String startTime;
    /**
     *
     */
    private String endTime;
    /**
     * 2^0 [for Sunday] through 2^6 [for Saturday]
     */
    private Integer daysOfWeek;
    /**
     * 状态 0: 未启用 1: 启用
     */
    private Integer status;
    /**
     * 信息
     */
    private String message;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

}
